package com.lleice.service.mapper.sys;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lleice.service.entity.sys.SysUser;
import com.lleice.service.qo.sys.UserListPageReq;
import com.lleice.service.vo.sys.UserListPageVo;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author lizihao
 * @since 2020-11-18
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
	/**
	 * 获取用户分页
	 * @param page 分页参数
	 * @param userListPageReq 条件查询
	 * @return
	 */
	Page<UserListPageVo> getUserListPage(IPage<UserListPageVo> page,@Param("param")UserListPageReq userListPageReq);
	/**
	 * 获取用户信息
	 * @param userId 用户id
	 * @return
	 */
	UserListPageVo getUserInfo(@Param("userId") Long userId);

}
